package com.ty.day6;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 * Author : txy
 * Create 2023/11/2 17:38
 */
public class Five {
    public static void main(String[] args) {
        double core;
        Scanner sc = new Scanner(System.in);
        System.out.println("输入成绩：");
        core = sc.nextDouble();
        if (core < 0 || core > 100) {
            System.out.println("分数输入错误！");
        } else if (core < 60) {
            System.out.println("C");
        } else if (core < 90) {
            System.out.println("B");
        } else {
            System.out.println("A");
        }
    }
}
